<?php

namespace Reportes\Controller;

use Reportes\Controller\GenericController;
use Componentes\Controller\UtilsArrayController;

class InscripcionController extends GenericController {

    public function __construct() {
        
    }

    public function getList($id = 1, $param1 = 1, $param2 = 1, $param3 = 1) {
        $id = $this->params()->fromRoute('id');
        $param1 = $this->params()->fromRoute('param1');
        $data = null;
        $mensaje = "Defaul";
        switch ($id) {
            case (1):
                /*
                 * Monitoreo de inscripcion
                 * Ej: http://localhost/UptaebBackend/public/reportes/inscripcion/1/201521
                 */
                $lapso = $this->params()->fromRoute('param1');
                $output = $this->getInscripcionService()->getMonitoreoOnLineAgrupadoPorEspecialidad($lapso);
                break;
            default:
                return $param1;
        }
        return $this->convertirArrayAJson($output);
    }
}
